/**
 * Created by apple on 17/3/13.
 */
var db = require('../db')
var express = require('express');
var router = express.Router();



router.get('/:id', function(req, res, next) {
    var params = [req.params.id]
    db.insert();
    db.query('select * from medicines where id =?',params,function(data){
        res.json(data)
    });
    db.update();
    db.deleteMethod();


});

module.exports =router
